package com.bluej.mybatisSpring.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.web.context.support.WebApplicationContextUtils;

public class DemoListener implements ServletContextListener {

	public void contextInitialized(ServletContextEvent sce) {
		WebApplicationContextUtils.getWebApplicationContext(sce.getServletContext());
		System.out.println();

	}

	public void contextDestroyed(ServletContextEvent sce) {
		// TODO Auto-generated method stub

	}

}
